package edu.jvn.ict.locationsharing;

import android.telephony.SmsManager;

public class SendSMSRunnable implements Runnable{

	private String phoneNumber;
	private String message;
	
	public SendSMSRunnable(String phoneNumber, String message) {
		this.phoneNumber = phoneNumber;
		this.message = message;
	}
	 
	@Override
	public void run() {				
//		PendingIntent pi = PendingIntent.getActivity(MemberServer.activity, 0, new Intent(MemberServer.activity,
//				MemberServer.androidActivityClass), 0);
		SmsManager sms = SmsManager.getDefault();
		sms.sendTextMessage(phoneNumber, null, message, null, null);	
	}

}
